home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / Translt.idl < prev    next >
Encoding:
Text File  |  1997-01-01  |  1.9 KB  |  76 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993-1994 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _TRANSLT_
  4. #define _TRANSLT_
  5.  
  6. #ifndef _ODOBJECT_
  7. #include "ODObject.idl"
  8. #endif
  9.  
  10. //=====================================================================================
  11. // Classes defined in this interface
  12. //=====================================================================================
  13. interface      ODTranslation;
  14.  
  15. //=====================================================================================
  16. // Classes used in this interface
  17. //=====================================================================================
  18.  
  19. interface ODTypeList;
  20. interface ODStorageUnitView;
  21. interface ODSession;
  22.  
  23.  
  24.  
  25. //=====================================================================================
  26. // Class ODTranslation
  27. //=====================================================================================
  28.  
  29. interface ODTranslation :  ODObject
  30. {
  31.     ODTranslateResult CanTranslate(in ODValueType fromType);
  32.     
  33.     ODTypeList GetTranslationOf(in ODValueType fromType);
  34.     
  35.     ODTranslateResult TranslateView(in ODStorageUnitView fromView,
  36.                                 in ODStorageUnitView toView);
  37.     
  38.     ODTranslateResult Translate(in ODValueType fromType,
  39.                                 in ODByteArray fromData,
  40.                                 in ODValueType  toType,
  41.                                 out ODByteArray toData);
  42.     
  43.     ODValueType GetISOTypeFromPlatformType(in ODPlatformType platformType,
  44.                                         in ODPlatformTypeSpace typeSpace);
  45.     
  46.     ODPlatformType GetPlatformTypeFromISOType(in ODValueType type);
  47.  
  48.     
  49. #ifdef __SOMIDL__
  50. #ifdef _PLATFORM_MACINTOSH_
  51.   implementation
  52.   {
  53.     majorversion = 1; minorversion = 0;
  54.       functionprefix = ODTranslation;
  55.       override:
  56.         somUninit,
  57.         Purge;
  58.         
  59.     releaseorder:
  60.         CanTranslate,
  61.         GetTranslationOf,
  62.         TranslateView,
  63.         Translate,
  64.         GetISOTypeFromPlatformType,
  65.         GetPlatformTypeFromISOType,
  66.         reserved1,
  67.         reserved2,
  68.         reserved3;
  69.  
  70.   };
  71. #endif //# _PLATFORM_MACINTOSH_
  72. #endif //# __SOMIDL__
  73. };
  74.  
  75. #endif    // _TRANSLT_
  76.